<?php
/**
 * @filename:					BuryTypeAction.class.php
 * @desc:						墓型管理模块
 *
 * @author: 					张召
 * @copyright:					zhangzhao@huigeyuan.com
 * @date:						2011-05-03
 */


class BuryTypeAction extends CommonAction
{
    /**
    * 落葬方式展示
    */
    function index()
    {
    	$crumb_info = array(
			array('uri' => '__URL__', 'title' => L('burytype_manage'), 'sort' => C('CRUMB_LAST')),
		);

		$this->_mergeCrumbInfo($crumb_info);
		$this->_action_link = array(
			array('uri' => '__URL__/add', 'title' => L('add_burytype')),
		);
		$this->assign('crumb_info', $this->_crumb_info);
		$this->assign('action_link', $this->_action_link);
		$listRows=$_REQUEST ['listRows'];
		parent::index();
    }
    /**
    * 添加新的落葬方式
    */
    public function add()
    {
       $crumb_info = array(
			array('uri' => '__URL__', 'title' => L('burytype_manage'), 'sort' => C('CRUMB_DEFAULT')),
			array('uri' => '__URL__/add', 'title' => L('add_burytype'), 'sort' => C('CRUMB_LAST')),
		);

		$this->_mergeCrumbInfo($crumb_info);
		$this->_action_link = array(
			array('uri' => '__URL__/index', 'title' => L('list_burytype')),
			);

		$this->assign('crumb_info', $this->_crumb_info);
		$this->assign('action_link', $this->_action_link);

		parent::add();
    }


    /**
    * 修改或完善落葬方式信息
    */
    public function edit()
    {
       $crumb_info = array(
			array('uri' => '__URL__', 'title' => L('burytype_manage'), 'sort' => C('CRUMB_DEFAULT')),
			array('uri' => '__URL__/edit/id/' . $_REQUEST['id'], 'title' => L('edit_burytype'), 'sort' => C('CRUMB_LAST')),
		);

		$this->_mergeCrumbInfo($crumb_info);
		$this->_action_link = array(
			array('uri' => '__URL__/index', 'title' => L('list_burytype')),
			);

		$this->assign('crumb_info', $this->_crumb_info);
		$this->assign('action_link', $this->_action_link);
		parent::edit();
    }

    /**
    * 删除当前墓型记录
    */
    public function delete()
    {
       parent::delete();
    }

}

?>